﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PrimBonusHesap.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxLoadingPanel" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallback" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <script type="text/javascript">
                var prm = Sys.WebForms.PageRequestManager.getInstance();
                prm.add_initializeRequest(initializeRequest);
                prm.add_pageLoaded(pageLoaded);
                function initializeRequest(sender, args) {
                    LoadingPanel.ShowInElement(args._postBackElement);
                }

                function pageLoaded(sender, args) {
                    var panels = args.get_panelsUpdated();
                    if (panels.length > 0) {
                        LoadingPanel.Hide();
                    }
                }
            </script>
            <dx:ASPxCallback ID="ASPxCallback1" runat="server" 
                oncallback="ASPxCallback1_Callback">
            </dx:ASPxCallback>
          
          <table>
          <tr>
             <td> 
                 <dx:ASPxComboBox ID="ASPxComboBox1" runat="server" 
                     CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                     DropDownStyle="DropDownList" EnableSynchronization="Default" 
                     HorizontalAlign="NotSet" IncrementalFilteringMode="None" 
                     LoadingPanelImagePosition="Left" PopupHorizontalAlign="LeftSides" 
                     PopupVerticalAlign="Below" RenderIFrameForPopupElements="Default" 
                     SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                     ValueType="System.String" BackColor="#FFFFCC" 
                     SelectedIndex="0">
                     <Items>
                         <dx:ListEditItem Text="Ocak" Value="1" Selected="True" />
                         <dx:ListEditItem Text="Şubat" Value="2" />
                         <dx:ListEditItem Text="Mart" Value="3" />
                         <dx:ListEditItem Text="Nisan" Value="4" />
                         <dx:ListEditItem Text="Mayıs" Value="5" />
                         <dx:ListEditItem Text="Haziran" Value="6" />
                         <dx:ListEditItem Text="Temmuz" Value="7" />
                         <dx:ListEditItem Text="Ağustos" Value="8" />
                         <dx:ListEditItem Text="Eylül" Value="9" />
                         <dx:ListEditItem Text="Ekim" Value="10" />
                         <dx:ListEditItem Text="Kasım" Value="11" />
                         <dx:ListEditItem Text="Aralık" Value="12" />
                     </Items>
                 <ItemImage Align="NotSet">
                 </ItemImage>
                 <ItemStyle HorizontalAlign="NotSet" VerticalAlign="NotSet" Wrap="Default">
                 <SelectedStyle>
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </SelectedStyle>
                 <HoverStyle>
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </HoverStyle>
                 <BackgroundImage Repeat="Repeat" />
                 <Border BorderStyle="NotSet" />
                 <BorderLeft BorderStyle="NotSet" />
                 <BorderTop BorderStyle="NotSet" />
                 <BorderRight BorderStyle="NotSet" />
                 <BorderBottom BorderStyle="NotSet" />
                 </ItemStyle>
                 <ListBoxStyle HorizontalAlign="NotSet" VerticalAlign="NotSet" Wrap="Default">
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </ListBoxStyle>
                 <LoadingPanelImage Align="NotSet" 
                     Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                 </LoadingPanelImage>
                 <LoadingPanelStyle HorizontalAlign="NotSet" VerticalAlign="NotSet" 
                     Wrap="Default">
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </LoadingPanelStyle>
                 <DropDownButton ImagePosition="Left" Position="Right">
                     <Image Align="NotSet">
                     </Image>
                 </DropDownButton>
                 <ButtonEditEllipsisImage Align="NotSet">
                 </ButtonEditEllipsisImage>
                 <ButtonStyle HorizontalAlign="NotSet" VerticalAlign="NotSet" Wrap="Default">
                     <DisabledStyle>
                         <BackgroundImage Repeat="Repeat" />
                         <Border BorderStyle="NotSet" />
                         <BorderLeft BorderStyle="NotSet" />
                         <BorderTop BorderStyle="NotSet" />
                         <BorderRight BorderStyle="NotSet" />
                         <BorderBottom BorderStyle="NotSet" />
                     </DisabledStyle>
                     <PressedStyle>
                         <BackgroundImage Repeat="Repeat" />
                         <Border BorderStyle="NotSet" />
                         <BorderLeft BorderStyle="NotSet" />
                         <BorderTop BorderStyle="NotSet" />
                         <BorderRight BorderStyle="NotSet" />
                         <BorderBottom BorderStyle="NotSet" />
                     </PressedStyle>
                     <HoverStyle>
                         <BackgroundImage Repeat="Repeat" />
                         <Border BorderStyle="NotSet" />
                         <BorderLeft BorderStyle="NotSet" />
                         <BorderTop BorderStyle="NotSet" />
                         <BorderRight BorderStyle="NotSet" />
                         <BorderBottom BorderStyle="NotSet" />
                     </HoverStyle>
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </ButtonStyle>
                 <ValidationSettings Display="Static" ErrorDisplayMode="ImageWithText" 
                     ErrorTextPosition="Right">
                     <ErrorImage Align="NotSet">
                     </ErrorImage>
                     <ErrorFrameStyle HorizontalAlign="NotSet" ImageSpacing="4px" 
                         VerticalAlign="NotSet" Wrap="Default">
                         <HoverStyle>
                             <BackgroundImage Repeat="Repeat" />
                             <Border BorderStyle="NotSet" />
                             <BorderLeft BorderStyle="NotSet" />
                             <BorderTop BorderStyle="NotSet" />
                             <BorderRight BorderStyle="NotSet" />
                             <BorderBottom BorderStyle="NotSet" />
                         </HoverStyle>
                         <ErrorTextPaddings PaddingLeft="4px" />
                         <BackgroundImage Repeat="Repeat" />
                         <Border BorderStyle="NotSet" />
                         <BorderLeft BorderStyle="NotSet" />
                         <BorderTop BorderStyle="NotSet" />
                         <BorderRight BorderStyle="NotSet" />
                         <BorderBottom BorderStyle="NotSet" />
                     </ErrorFrameStyle>
                 </ValidationSettings>
                 <ReadOnlyStyle HorizontalAlign="NotSet" VerticalAlign="NotSet" Wrap="Default">
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </ReadOnlyStyle>
                 <FocusedStyle HorizontalAlign="NotSet" Wrap="Default">
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </FocusedStyle>
                 <InvalidStyle HorizontalAlign="NotSet" Wrap="Default">
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </InvalidStyle>
                 <BackgroundImage Repeat="Repeat" />
                 <Border BorderStyle="NotSet" />
                 <BorderLeft BorderStyle="NotSet" />
                 <BorderTop BorderStyle="NotSet" />
                 <BorderRight BorderStyle="NotSet" />
                 <BorderBottom BorderStyle="NotSet" />
                 <DisabledStyle>
                     <BackgroundImage Repeat="Repeat" />
                     <Border BorderStyle="NotSet" />
                     <BorderLeft BorderStyle="NotSet" />
                     <BorderTop BorderStyle="NotSet" />
                     <BorderRight BorderStyle="NotSet" />
                     <BorderBottom BorderStyle="NotSet" />
                 </DisabledStyle>
               </dx:ASPxComboBox></td> 
            
              <td> 
                  <dx:ASPxSpinEdit ID="ASPxSpinEdit1" runat="server" Height="29px" Number="2010" 
                      CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                      HorizontalAlign="NotSet" NumberType="Float" 
                      SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                      BackColor="#FFFFCC" MaxValue="2050" MinValue="2010" Width="98px" />
                
              </td>
           
               <td> 
                   <dx:ASPxButton ID="btnHesapla" runat="server" Text="Pirim Bonus Tutarlarını Hesapla" 
                       CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                       HorizontalAlign="NotSet" ImagePosition="Left" onclick="btnHesapla_Click" 
                       SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                       VerticalAlign="NotSet" Wrap="Default">
                </dx:ASPxButton></td>  
            </tr>
            <tr>
                <dx:ASPxLoadingPanel ID="LoadingPanel" runat="server" 
                    ClientInstanceName="LoadingPanel" Modal="True" 
                    Text="Hesaplaniyor&amp;hellip;" VerticalAlign="Top" VerticalOffset="70">
                </dx:ASPxLoadingPanel>
            </tr>
            </table>


        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

